Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved a regression of template_methods working when overloaded by library steps #293

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

steven-terrana
Copy link

PR Details

fixes #291

a bug was introduced by #283 that caused a regression in template methods working as expected.

Description

PR #283 introduced a bug where the TemplatePrimitiveCollector was not being persisted after each TemplatePrimitiveInjector.

This resulted in TemplateMethodInjector not being able to access the TemplatePrimitives that had been created by LibraryStepInjector.

The fix was to update the TemplatePrimitiveInjector.invoke$ method so that the updated TemplatePrimitiveCollector is persisted on the WorkflowRun after each injector is invoked.

How Has This Been Tested

reproduced the bug both manually and in unit tests.
confirmed that the change fixes both.

Types of Changes

  • Added Unit Testing
  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have added the appropriate label for this PR
  • If necessary, I have updated the documentation accordingly.
  • All new and existing tests passed.

@steven-terrana steven-terrana added the bug Something isn't working label Jun 24, 2022
@steven-terrana steven-terrana merged commit 10ee9f8 into jenkinsci:main Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: template_methods overlaps with library methods
1 participant